Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support interface-string<Foo> as temporary alias of class-string<Foo> #6106

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

muglug
Copy link
Collaborator

@muglug muglug commented Jul 15, 2021

Ref #6075

This allows library authors to hint functions as accepting interface-string so things won't break when class-string stops accepting interface strings.

Future work

Transition to using interface-string to exclusively mean string class constants (example branch here: https://github.com/vimeo/psalm/commits/interface-string-support)

@muglug muglug requested a review from weirdan July 15, 2021 21:01
@orklah
Copy link
Collaborator

orklah commented Jul 15, 2021

We could add interface-string to the return of class_implements. It would start to solve #4749
EDIT: also interface_exists should assert interface-string on parameter

@muglug muglug merged commit 88c4e24 into master Jul 16, 2021
@muglug muglug deleted the support-interface-string-proxy branch July 16, 2021 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants